/** ============================== 用户相关模块 Start ============================== */
const Users = require("./tables/Users");
const ActivityLogs = require("./tables/ActivityLogs");

exports.Users = Users;
exports.ActivityLogs = ActivityLogs;
// ActivityLogs属于Users
ActivityLogs.belongsTo(Users, { foreignKey: "user_id" });
// Users拥有多个ActivityLogs
Users.hasMany(ActivityLogs, { foreignKey: "user_id" });

/** ============================== 用户相关模块 End ============================== */
